package Learn194;

public class Student{
    private String name;
    private int age;
    private double YuWen;
    private double ShuXue;
    private double English;


    public Student() {
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Student(String name, int age, double YuWen, double ShuXue, double English) {
        this.name = name;
        this.age = age;
        this.YuWen = YuWen;
        this.ShuXue = ShuXue;
        this.English = English;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(int age) {
        this.age = age;
    }

    /**
     * 获取
     * @return YuWen
     */
    public double getYuWen() {
        return YuWen;
    }

    /**
     * 设置
     * @param YuWen
     */
    public void setYuWen(double YuWen) {
        this.YuWen = YuWen;
    }

    /**
     * 获取
     * @return ShuXue
     */
    public double getShuXue() {
        return ShuXue;
    }

    /**
     * 设置
     * @param ShuXue
     */
    public void setShuXue(double ShuXue) {
        this.ShuXue = ShuXue;
    }

    /**
     * 获取
     * @return English
     */
    public double getEnglish() {
        return English;
    }

    /**
     * 设置
     * @param English
     */
    public void setEnglish(double English) {
        this.English = English;
    }

    public String toString() {
        return "Student{name = " + name + ", age = " + age + ", YuWen = " + YuWen + ", ShuXue = " + ShuXue + ", English = " + English + "}";
    }
}
